
<h2><?php echo __('Backups'); ?></h2>
<table cellpadding="0" cellspacing="0">
    <tr>
        <th><?php echo $this->Paginator->sort('name'); ?></th>
        <th><?php echo $this->Paginator->sort('date'); ?></th>
        <th><?php echo $this->Paginator->sort('path'); ?></th>
        <th>Restore</th>
        <th>Delete</th>
    </tr>
    <?php foreach ($backups as $backup): ?>
        <tr>
            <td><?php echo h($backup['Backup']['name']); ?>&nbsp;</td>
            <td><?php echo h($backup['Backup']['date']); ?>&nbsp;</td>
            <td><?php echo h($backup['Backup']['path']); ?>&nbsp;</td>
            <td><?php echo $this->Html->link('Click to restore', array('action' => 'restore', $backup['Backup']['id'])); ?></td>
                <td><?php echo $this->Form->postLink($this->Html->image('delete.png', array('alt' => __('Delete'))), array('action' => 'delete', $backup['Backup']['id']), array('escape' => false, 'confirm'=>__('Are you sure you want to delete '. $backup['Backup']['name']. '?'))); ?></td>	

        </tr>
    <?php endforeach; ?>
</table>
<?php 
$date = $this->Time->format('Y-m-d',time());
$time = $this->Time->format('H:i:s',time());
$timepath = $this->Time->format('H-i-s',time());
?>
Click <?php echo $this->Html->link('here', array('action' => 'backup','?'=>array('date'=>$date,'time'=>$time,'timepath'=>$timepath))); ?> to backup file now